package com.tronsis.distribution.bean;

import java.io.Serializable;

/**
 * 发货列表Bean
 */
public class DeliveryBean implements Serializable {

    /**
     * code : string
     * createdOn : string
     * done : true
     * id : string
     * receiverAddr : {"detail":"string","name":"string","phone":"string","region":"string"}
     * state : DELIVERY(待发货)
     * stateOn : string
     * totalFreight : 0
     * totalItem : 0
     */

    private String code;
    private String createdOn;
    private boolean done;
    private String id;
    private ReceiverAddrBean receiverAddr;
    private String state;
    private String stateOn;
    private float totalFreight;
    private int totalItem;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getCreatedOn() {
        return createdOn;
    }

    public void setCreatedOn(String createdOn) {
        this.createdOn = createdOn;
    }

    public boolean isDone() {
        return done;
    }

    public void setDone(boolean done) {
        this.done = done;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public ReceiverAddrBean getReceiverAddr() {
        return receiverAddr;
    }

    public void setReceiverAddr(ReceiverAddrBean receiverAddr) {
        this.receiverAddr = receiverAddr;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getStateOn() {
        return stateOn;
    }

    public void setStateOn(String stateOn) {
        this.stateOn = stateOn;
    }

    public float getTotalFreight() {
        return totalFreight;
    }

    public void setTotalFreight(float totalFreight) {
        this.totalFreight = totalFreight;
    }

    public int getTotalItem() {
        return totalItem;
    }

    public void setTotalItem(int totalItem) {
        this.totalItem = totalItem;
    }

    public static class ReceiverAddrBean implements Serializable{
        /**
         * detail : string
         * name : string
         * phone : string
         * region : string
         */

        private String detail;
        private String name;
        private String phone;
        private String region;

        public String getDetail() {
            return detail;
        }

        public void setDetail(String detail) {
            this.detail = detail;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getPhone() {
            return phone;
        }

        public void setPhone(String phone) {
            this.phone = phone;
        }

        public String getRegion() {
            return region;
        }

        public void setRegion(String region) {
            this.region = region;
        }
    }
}
